<?php
error_reporting(0);
$isadmin=1; 
include '../comm/config.php';
include 'check.php';
include_once '../comm/func.php';
$cha =$_POST['cha']; 

$link = mysql_connect($dbserver, $dbuser, $dbpass);
if (!$link) {die(ERR_DB);}
mysql_select_db($dbname);
mysql_query("set names utf8");
$q = "update ".$BIAOTOU."websetting set cha='".$cha."'";

mysql_query($q);

mysql_close($link);
echo "<script language=javascript>alert('查返现设置成功！');window.location='cha.php'</script>";
?>
